using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using BusinessLayer;

namespace DeAn_LapTrinhCSDL.UserControl
{
    public partial class ucTKTinhHinhDatNhap : DevExpress.XtraEditors.XtraUserControl
    {
        public ucTKTinhHinhDatNhap()
        {
            InitializeComponent();
        }

        private void ucTKTinhHinhDatNhap_Load(object sender, EventArgs e)
        {
            DonDH dh = new DonDH();
            dh.connect.ConnectionString = Program.strConnect;
            Report.rpThongKeTinhHinhDatNhap rpt = new DeAn_LapTrinhCSDL.Report.rpThongKeTinhHinhDatNhap();
            rpt.DataSource = dh.GetData();
            printControl1.PrintingSystem = rpt.PrintingSystem;
            rpt.CreateDocument();
        }
    }
}
